﻿<%@ Page Language="C#" MasterPageFile="~/Design/MasterPage/MasterPage.master" AutoEventWireup="true"
    CodeFile="PersonInfoFamily.aspx.cs" Inherits="App_Input_PersonInfoFamily" Title="Untitled Page" %>

<%@ Register Assembly="ShpmCommon" Namespace="Shpm.System.Web.Control" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <cc1:ComValidator ID="ComValidator1" runat="server" CheckItems-Capacity="32" ForeColor="Red"
        Visible="false">
        <cc1:CheckRequiredAttribute Code="E0082" ControlToValidator="relation">
            <cc1:ComAbsParamsAttribute Parameter="称谓" />
        </cc1:CheckRequiredAttribute>
        <cc1:CheckRequiredAttribute Code="E0082" ControlToValidator="name">
            <cc1:ComAbsParamsAttribute Parameter="姓名" />
        </cc1:CheckRequiredAttribute>
        <cc1:CheckRequiredAttribute Code="E0082" ControlToValidator="age">
            <cc1:ComAbsParamsAttribute Parameter="年龄" />
        </cc1:CheckRequiredAttribute>
        <cc1:CheckLongRangeAttribute Code="E0065" ControlToValidator="age" MaxNumber="150"
            MinNumber="1">
            <cc1:ComAbsParamsAttribute Parameter="年龄" />
            <cc1:ComAbsParamsAttribute Parameter="1" />
            <cc1:ComAbsParamsAttribute Parameter="150" />
        </cc1:CheckLongRangeAttribute>
    </cc1:ComValidator>
    <div>
        <div id="container">
            <div id="title">
                <ul>
                    <li id="tag1">
                        <asp:LinkButton ID="LinkButton1" OnCommand="lnkTab_Command" CommandName="btn0" runat="server"><span>基本信息</span></asp:LinkButton>
                    </li>
                    <li id="tag2">
                        <asp:LinkButton ID="LinkButton2" OnCommand="lnkTab_Command" CommandName="btn1" runat="server"><span>学历</span></asp:LinkButton>
                    </li>
                    <li id="tag4">
                        <asp:LinkButton ID="LinkButton4" OnCommand="lnkTab_Command" CommandName="btn3" runat="server"><span>工作经历</span></asp:LinkButton>
                    </li>
                    <li id="tag3">
                        <asp:LinkButton ID="LinkButton3" OnCommand="lnkTab_Command" CommandName="btn2" runat="server"
                            CssClass="selectli" OnClientClick="return false;"><span class="selectspan">家庭情况</span></asp:LinkButton>
                    </li>
                    <li id="tag5">
                        <asp:LinkButton ID="LinkButton5" OnCommand="lnkTab_Command" CommandName="btn4" runat="server"><span>福利</span></asp:LinkButton>
                    </li>
                    <li id="tag6">
                        <asp:LinkButton ID="LinkButton6" OnCommand="lnkTab_Command" CommandName="btn5" runat="server"><span>薪酬信息</span></asp:LinkButton>
                    </li>
                    <li id="tag7">
                        <asp:LinkButton ID="LinkButton7" OnCommand="lnkTab_Command" CommandName="btn6" runat="server"><span>奖惩纪录</span></asp:LinkButton>
                    </li>
                    <li id="tag8">
                        <asp:LinkButton ID="LinkButton8" OnCommand="lnkTab_Command" CommandName="btn7" runat="server"><span>报到准备</span></asp:LinkButton>
                    </li> 
                     <li id="tag9">
                        <asp:LinkButton ID="LinkButton9" OnCommand="lnkTab_Command" CommandName="btn8" runat="server"><span>培训申请</span></asp:LinkButton>
                    </li> 
                </ul>
            </div>
            <div id="content" class="content1">
                <table class="table_border_line">
                    <tr>
                        <td>
                            <asp:GridView ID="GridView2" runat="server" AllowPaging="True" AutoGenerateColumns="False"
                                CssClass="GridView_table" OnPageIndexChanging="GridView2_PageIndexChanging" OnRowDeleting="GridView2_OnRowDeleting"
                                OnRowEditing="GridView2_OnRowEditing" OnRowDataBound="GridView2_RowDataBound">
                                <Columns>
                                    <asp:BoundField DataField="Relation" HeaderText="称谓">
                                        <ItemStyle CssClass="GridView_item_center" />
                                        <HeaderStyle CssClass="GridView_head_grayblue" Width="10%" />
                                    </asp:BoundField>
                                    <asp:BoundField DataField="Name" HeaderText="姓名">
                                        <ItemStyle CssClass="GridView_item_center" />
                                        <HeaderStyle CssClass="GridView_head_grayblue" Width="10%" />
                                    </asp:BoundField>
                                    <asp:BoundField DataField="Age" HeaderText="年龄">
                                        <ItemStyle CssClass="GridView_item_center" />
                                        <HeaderStyle CssClass="GridView_head_grayblue" Width="10%" />
                                    </asp:BoundField>
                                    <asp:BoundField DataField="Company" HeaderText="服务机构名称">
                                        <ItemStyle CssClass="GridView_item_center" />
                                        <HeaderStyle CssClass="GridView_head_grayblue" Width="20%" />
                                    </asp:BoundField>
                                    <asp:BoundField DataField="Job" HeaderText="职位">
                                        <ItemStyle CssClass="GridView_item_center" />
                                        <HeaderStyle CssClass="GridView_head_grayblue" Width="10%" />
                                    </asp:BoundField>
                                    <asp:CommandField ButtonType="Image" EditImageUrl="~/images/edit.jpg" EditText="编辑"
                                        HeaderText="编辑" ShowEditButton="True">
                                        <HeaderStyle CssClass="GridView_head_grayblue" />
                                        <ItemStyle CssClass="GridView_item_center" Width="5%" />
                                    </asp:CommandField>
                                    <asp:TemplateField HeaderText="删除" ShowHeader="False">
                                        <ItemStyle CssClass="GridView_item_center" />
                                        <HeaderStyle CssClass="GridView_head_grayblue" Width="5%" />
                                        <ItemTemplate>
                                            <asp:ImageButton ID="ImageButton1" runat="server" CausesValidation="False" CommandName="Delete"
                                                ImageUrl="~/images/delete.jpg" OnClientClick="return confirm('确定删除吗？')" Text="" />
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField Visible="False">
                                        <EditItemTemplate>
                                            <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("RowId") %>'></asp:TextBox>
                                        </EditItemTemplate>
                                        <ItemTemplate>
                                            <asp:Label ID="RowId" runat="server" Text='<%# Bind("RowId") %>'></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                </Columns>
                                <PagerStyle HorizontalAlign="Right" />
                            </asp:GridView>
                        </td>
                    </tr>
                </table>
                <br />
                <table border="0" cellpadding="3" cellspacing="3" width="100%">
                    <tr>
                        <td align="left" colspan="2">
                            <span id="workSpan" runat="server">新增家庭情况</span></td>
                    </tr>
                    <tr>
                        <td align="center" style="height: 22px">
                            <span style="color: #ff7300">*</span> 称谓：</td>
                        <td style="height: 22px">
                            <asp:TextBox ID="relation" runat="server" CssClass="input-box" MaxLength="10" Width="211px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td align="center">
                            <span style="color: #ff7300">*</span> 姓名：</td>
                        <td>
                            <asp:TextBox ID="name" runat="server" CssClass="input-box" MaxLength="10" Width="212px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td align="center">
                            <span style="color: #ff7300">*</span> 年龄：
                        </td>
                        <td>
                            <asp:TextBox ID="age" runat="server" CssClass="input-box" MaxLength="10" Width="212px"></asp:TextBox></td>
                    </tr>
                    <tr>
                        <td align="center">
                            服务机构名称： &nbsp;
                        </td>
                        <td>
                            <asp:TextBox ID="company" runat="server" CssClass="input-box" MaxLength="10" Width="212px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td align="center">
                            职位：</td>
                        <td>
                            <asp:TextBox ID="job" runat="server" CssClass="input-box" MaxLength="10" Width="212px"></asp:TextBox></td>
                    </tr>
                </table>
                <br/>
                <table class="table_border_line">
                    <tr>
                        <td style="text-align: center">
                            <asp:Button ID="btnAdd" runat="server" CssClass="button" OnClick="btnAdd_Click" Text="登 记"
                                Width="89px" />&nbsp;<asp:Button ID="btnBack" runat="server" CssClass="button" Text="返 回"
                                    Width="89px" OnClick="btnBack_Click" /></td>
                    </tr>
                </table>
                
            </div>
        </div>
</asp:Content>
